<div class="left-section">
    <h2><?php echo $this->categoryName ?></h2>

    <?php if(count($this->data) > 0) :
        $common = new Default_Model_Common();
        $i = 0;
        foreach($this->data as $value) :
            $i++;
            if($i == $this->data->getTotalItemCount()) :
    ?>
        <div class="item-last">
    <?php else : ?>
        <div class="item">
    <?php endif; ?>
            <img class="item-image" src="<?php echo $this->baseUrl('/public/files/tour/').$value['image'] ?>" />
            <div class="item-description">
                <a class="item-title" href="<?php echo $this->baseUrl($this->lang.'/tour/details?id='.$value['id']) ?>">
                    <?php echo $value['name'] ?>
                </a>
                <div class="item-address">
                    Lịch trình: <?php echo $value['schedule'] ?>
                </div>
                <div class="item-tag">
                    Khởi hành: <?php echo $value['start_date'] ?>
                </div>
                <div class="item-tag">
                    <b>Giá: <?php echo $common->formatMoney($value['price']) . 'đ' ?></b>
                </div>
                <div class="description">
                    <?php echo $common->cut_string(strip_tags($value['description']), 300, 1) ?>
                </div>
                <span class="item-icon"></span>
                <a href="<?php echo $this->baseUrl($this->lang.'/tour/details?id='.$value['id']) ?>" class="item-continue button">chi tiết</a>
            </div>
        </div>
    <?php
        endforeach;
        else :
    ?>
        <p>Hiện không có tour nào</p>
    <?php endif; ?>

    <?php if(count($this->data) > 0) : ?>
        <div class="pagination">
            <?php echo $this->paginationControl($this->data, 'Sliding', 'tour/pagination.phtml') ?>
        </div>
    <?php endif; ?>
</div>

<?php echo $this->render('/right.phtml') ?>